package com.ophiux.cs.application.user.dto;

import com.ophiux.cs.application.core.RequestDTO;
import com.ophiux.cs.application.core.Throws.ParamException;
import com.ophiux.utils.common.StringUtil;

public class addUserByDoctorRequest extends RequestDTO{
	private String PHONE;//	Y	String	联系电话
	private String USER_PWD;//	Y	String 	登录密码
	private String USER_NAME;//	Y	String	用户姓名
	private String ID_NO;//	N	String	身份
	private String SEX;//	Y	String	性别
	private String HOSPITAL_NAME;//	Y	String	医院名称
	private String DEPT_NAME;//	Y	String	科室名称
	private String TECHNICAL_TITLE;//	Y	String	职称
	private String CERTIFICATE_NO;//	Y	String	执业医师资格证编号
	
	public void verParam() throws ParamException{
		if(StringUtil.isEmpty(this.PHONE)) {
			throw new ParamException("联系电话不可为空");
		}
		if(StringUtil.isEmpty(this.USER_PWD)) {
			throw new ParamException("登录密码不可为空");
		}
		if(StringUtil.isEmpty(this.USER_NAME)) {
			throw new ParamException("用户姓名不可为空");
		}
		if(StringUtil.isEmpty(this.HOSPITAL_NAME)) {
			throw new ParamException("医院名称不可为空");
		}
		if(StringUtil.isEmpty(this.DEPT_NAME)) {
			throw new ParamException("科室名称不可为空");
		}
		if(StringUtil.isEmpty(this.SEX)) {
			throw new ParamException("性别不可为空");
		}
		if(StringUtil.isEmpty(this.TECHNICAL_TITLE)) {
			throw new ParamException("职称不可为空");
		}
		if(StringUtil.isEmpty(this.CERTIFICATE_NO)) {
			throw new ParamException("执业医师资格证编号不可为空");
		}
	}
	
	public String getPHONE() {
		return PHONE;
	}
	public void setPHONE(String pHONE) {
		PHONE = pHONE;
	}
	public String getUSER_PWD() {
		return USER_PWD;
	}
	public void setUSER_PWD(String uSER_PWD) {
		USER_PWD = uSER_PWD;
	}
	public String getUSER_NAME() {
		return USER_NAME;
	}
	public void setUSER_NAME(String uSER_NAME) {
		USER_NAME = uSER_NAME;
	}
	public String getID_NO() {
		return ID_NO;
	}
	public void setID_NO(String iD_NO) {
		ID_NO = iD_NO;
	}
	public String getSEX() {
		return SEX;
	}
	public void setSEX(String sEX) {
		SEX = sEX;
	}
	public String getHOSPITAL_NAME() {
		return HOSPITAL_NAME;
	}
	public void setHOSPITAL_NAME(String hOSPITAL_NAME) {
		HOSPITAL_NAME = hOSPITAL_NAME;
	}
	public String getDEPT_NAME() {
		return DEPT_NAME;
	}
	public void setDEPT_NAME(String dEPT_NAME) {
		DEPT_NAME = dEPT_NAME;
	}
	public String getTECHNICAL_TITLE() {
		return TECHNICAL_TITLE;
	}
	public void setTECHNICAL_TITLE(String tECHNICAL_TITLE) {
		TECHNICAL_TITLE = tECHNICAL_TITLE;
	}
	public String getCERTIFICATE_NO() {
		return CERTIFICATE_NO;
	}
	public void setCERTIFICATE_NO(String cERTIFICATE_NO) {
		CERTIFICATE_NO = cERTIFICATE_NO;
	}
	@Override
	public boolean isParamValid() {
		// TODO Auto-generated method stub
		return false;
	}

}
